package proj.pt.model;

import java.util.Date;


public abstract class PersistentImpl implements Persistent {
	private Long id;
	private String name;
	private Date createdDate;
	private Date lastUpdatedDate;
	
	public Date getLastUpdatedDate() {
		return lastUpdatedDate;
	}
	public void setLastUpdatedDate(Date lastUpdatedDate) {
		this.lastUpdatedDate = lastUpdatedDate;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	
	
	public String getIdAsString() {
		if(id != null) return id.toString();
		return "";
	}
	
}
